<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>API 视图</title>
  <script src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
    <style>
        .hr1{
            height: 5px;border:none;border-top:5px dashed rebeccapurple;
            width: 80%;
        }
        .hr2{
            height: 5px;border:none;border-top:5px dashed green;width: 80%;
        }
        .fontTr{
            color: brown;
            font-weight: bold;
        }
    </style>
</head>
<body>
 <div id="content">
     <button id="logout" >登出</button>
 </div>
</body>
<script>
  $(function (){
     $("#logout").click(function(){
         var preUrl =window.location.href;
         $.get("/sso/login/logout",function (){
               window.location.href=preUrl;
         });
     });
  });
</script>
</html>